package com.naiterui.ehp.bs.cms.modules.wms.feign;

import com.naiterui.ehp.bp.support.config.FeignConfiguration;
import com.naiterui.ehp.bp.support.exception.BusinessException;
import com.naiterui.ehp.bs.cms.modules.wms.vo.ProductInventoryParamVO;
import com.naiterui.ehp.bs.cms.modules.wms.vo.ProductInventoryVO;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.*;

import java.util.List;

/**
 * <pre>
 *
 * </pre>
 *
 * @author fangguanhong
 * @date 2021/4/9 2:43 PM
 * @since 1.0.0
 */
@RequestMapping("inner/cms/platform")
@FeignClient(name = "medicine", url = "${ehp.domain.b2c}", configuration = FeignConfiguration.class)
public interface IB2cPlatformFeignClient {

    @GetMapping("/product/add")
    void addSku(@RequestParam("start") String start, @RequestParam("end") String end, @RequestParam("numbers") String numbers) throws BusinessException;

    @PostMapping("/product/inventory")
    List<ProductInventoryVO> getProductInventory(@RequestBody List<ProductInventoryParamVO> drugList) throws BusinessException;
}
